package com.restfinder.comment.service;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.restfinder.comment.dao.DatabaseCommentRepository;
import com.restfinder.comment.dao.CommentRepository;
import com.restfinder.comment.model.Comment;

@Service
@Transactional(rollbackFor=Exception.class)
public class CommentService implements CommentIService {

	private static final long serialVersionUID = 1L;
	
	@Autowired
	private CommentRepository commentIRepository;

	public void save(Comment comment) {
		commentIRepository.save(comment);
	}

}
